#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
DIP分组分析HTTP服务启动脚本
"""

import sys
import os

# 添加项目根目录到Python路径
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from series.dip_series_bl_entrance import main

if __name__ == "__main__":
    print("正在启动DIP分组分析HTTP服务...")
    print("服务地址: http://localhost:5000")
    print("健康检查: http://localhost:5000/api/health")
    print("按 Ctrl+C 停止服务")
    print("-" * 50)
    
    try:
        main()
    except KeyboardInterrupt:
        print("\n服务已停止")
    except Exception as e:
        print(f"启动服务时发生错误: {e}") 